Extract contour lines and DEM